package com.mspbots.core.system;

import com.mspbots.core.AbstractBaseController;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.concurrent.Callable;

/**
 * com.mspbots.controller.SystemSettingController
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/6/3
 */
@RestController
@RequestMapping("system-holiday")
public class SystemHolidayController extends AbstractBaseController<SystemHoliday, SystemHolidayService> {

    @PostMapping(path = "addAll")
    public Callable addAll(@RequestBody List<SystemHoliday> holidayPOList) {
        return () -> service.saveBatch(holidayPOList);
    }


}
